def assert_common(response, status_code=200, msg="成功", code=200):
    """断言通用方法"""
    assert response.status_code == status_code
    assert msg in response.text
    assert response.json().get("code") == code
